package cn.okcode.slowjson;

/**
 * @author pyk13
 */
public class Config {
    /**
     * 宽松模式匹配json对象的 属性
     * <p>
     * 正常模式只能这样:
     * {
     * "name":"tom"
     * }
     * <p>
     * 宽松模式可以这样：
     * {
     * name:"tom"
     * }
     */
    private boolean loosePropertyMatching = true;

    private boolean skipComment = true;

    public static final String DEFAULT_DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    public static final String DEFAULT_DATE_FORMATTER = "yyyy-MM-dd";

    public boolean isLoosePropertyMatching() {
        return loosePropertyMatching;
    }

    public void setLoosePropertyMatching(boolean loosePropertyMatching) {
        this.loosePropertyMatching = loosePropertyMatching;
    }

    public boolean isSkipComment() {
        return skipComment;
    }

    public void setSkipComment(boolean skipComment) {
        this.skipComment = skipComment;
    }
}
